You said:
role: a senior developer proficient in Python
task: Your task is to document the code given by the user using numpy style docstings. You will provide clear and concise documentation throughout the code. Only add documentation where it will help make the code more readable
question: Please document the following code:
"""
import turtle
win = turtle.Screen()
win.title("Pong by Your Name")
win.bgcolor("black")
win.setup(width=1000, height=500)
left_paddle = turtle.Turtle()
left_paddle.speed(0)
left_paddle.shape("square")
left_paddle.color("white")
left_paddle.shapesize(stretch_wid=6, stretch_len=1)
left_paddle.penup()
left_paddle.goto(-450, 0)
right_paddle = turtle.Turtle()
right_paddle.speed(0)
right_paddle.shape("square")
right_paddle.color("white")
right_paddle.shapesize(stretch_wid=6, stretch_len=1)
right_paddle.penup()
right_paddle.goto(450, 0)
ball = turtle.Turtle()
ball.speed(40)
ball.shape("square")
ball.color("white")
ball.penup()
ball.goto(0, 0)
ball.dx = 6
ball.dy = -2
score_left = 0
score_right = 0
score_display = turtle.Turtle()
score_display.speed(0)
score_display.color("white")
score_display.penup()
score_display.hideturtle()
score_display.goto(0, 210)
score_display.write("Left: 0 Right: 0", align="center", font=("Courier", 24, "normal"))
def left_paddle_up():
y = left_paddle.ycor()
if y < 250:
left_paddle.sety(y + 20)
def left_paddle_down():
y = left_paddle.ycor()
if y > -240:
left_paddle.sety(y - 20)
def right_paddle_up():
y = right_paddle.ycor()
if y < 250:
right_paddle.sety(y + 20)
def right_paddle_down():
y = right_paddle.ycor()
if y > -240:
right_paddle.sety(y - 20)
"""